package com.autobet.model.table;

import java.util.Date;

/**
 * Created by yangd on 2017-08-27.
 */
public class ResultHis {

    private String dataId;
    private String buydateId;
    private String resultTime;
    private String r1;
    private String r2;
    private String r3;
    private String r4;
    private String r5;
    private String r6;
    private String r7;
    private String r8;
    private String r9;
    private String r10;
    private Date insertDate;
    private String resultDate;
    private String firstFlag;
    private String firstArea;
    private String secondArea;
    private String firstSelect;
    private String secondSelect;

    public String getResultArray()
    {
        return getR1() + "," + getR2() + "," + getR3() + "," + getR4() + "," + getR5() + "," + getR6() + "," + getR7() + "," + getR8() + "," + getR9() + "," + getR10();
    }

    public String getResultByNum(String num)
            throws Exception
    {
        switch (num)
        {
            case "1":
                return getR1();
            case "2":
                return getR2();
            case "3":
                return getR3();
            case "4":
                return getR4();
            case "5":
                return getR5();
            case "6":
                return getR6();
            case "7":
                return getR7();
            case "8":
                return getR8();
            case "9":
                return getR9();
            case "10":
                return getR10();
        }
        throw new Exception("获取的车位数不正确!");
    }

    public String getDataId() {
        return dataId;
    }

    public void setDataId(String dataId) {
        this.dataId = dataId;
    }

    public String getBuydateId() {
        return buydateId;
    }

    public void setBuydateId(String buydateId) {
        this.buydateId = buydateId;
    }

    public String getResultTime() {
        return resultTime;
    }

    public void setResultTime(String resultTime) {
        this.resultTime = resultTime;
    }

    public String getR1() {
        return r1;
    }

    public void setR1(String r1) {
        this.r1 = r1;
    }

    public String getR2() {
        return r2;
    }

    public void setR2(String r2) {
        this.r2 = r2;
    }

    public String getR3() {
        return r3;
    }

    public void setR3(String r3) {
        this.r3 = r3;
    }

    public String getR4() {
        return r4;
    }

    public void setR4(String r4) {
        this.r4 = r4;
    }

    public String getR5() {
        return r5;
    }

    public void setR5(String r5) {
        this.r5 = r5;
    }

    public String getR6() {
        return r6;
    }

    public void setR6(String r6) {
        this.r6 = r6;
    }

    public String getR7() {
        return r7;
    }

    public void setR7(String r7) {
        this.r7 = r7;
    }

    public String getR8() {
        return r8;
    }

    public void setR8(String r8) {
        this.r8 = r8;
    }

    public String getR9() {
        return r9;
    }

    public void setR9(String r9) {
        this.r9 = r9;
    }

    public String getR10() {
        return r10;
    }

    public void setR10(String r10) {
        this.r10 = r10;
    }

    public Date getInsertDate() {
        return insertDate;
    }

    public void setInsertDate(Date insertDate) {
        this.insertDate = insertDate;
    }

    public String getResultDate() {
        return resultDate;
    }

    public void setResultDate(String resultDate) {
        this.resultDate = resultDate;
    }

    public String getFirstFlag() {
        return firstFlag;
    }

    public void setFirstFlag(String firstFlag) {
        this.firstFlag = firstFlag;
    }


    public String getFirstArea() {
        return firstArea;
    }

    public void setFirstArea(String firstArea) {
        this.firstArea = firstArea;
    }

    public String getSecondArea() {
        return secondArea;
    }

    public void setSecondArea(String secondArea) {
        this.secondArea = secondArea;
    }

    public String getFirstSelect() {
        return firstSelect;
    }

    public void setFirstSelect(String firstSelect) {
        this.firstSelect = firstSelect;
    }

    public String getSecondSelect() {
        return secondSelect;
    }

    public void setSecondSelect(String secondSelect) {
        this.secondSelect = secondSelect;
    }

    @Override
    public String toString()
    {
        return "ResultHis{dataId='" + this.dataId + '\'' + ", buydateId='" + this.buydateId + '\'' + ", resultTime='" + this.resultTime + '\'' + ", r1='" + this.r1 + '\'' + ", r2='" + this.r2 + '\'' + ", r3='" + this.r3 + '\'' + ", r4='" + this.r4 + '\'' + ", r5='" + this.r5 + '\'' + ", r6='" + this.r6 + '\'' + ", r7='" + this.r7 + '\'' + ", r8='" + this.r8 + '\'' + ", r9='" + this.r9 + '\'' + ", r10='" + this.r10 + '\'' + ", insertDate=" + this.insertDate + ", resultDate='" + this.resultDate + '\'' + ", firstFlag='" + this.firstFlag + '\'' +
                this.firstArea + '\'' + this.secondArea + '\'' + this.firstSelect + '\'' + this.secondSelect + '\'' + '}';
    }
}

